<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>输入</title>
		<script>
			var n=prompt("请输入你的年龄","20");
			alert("你今年"+n+"岁了");
		</script>
	</head>
	<body>
	</body>
</html>